package com.example.saiaadmin.entry;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import lombok.Data;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;

/**
 * 字典数据表
 *
 *  @author  Vagrant
 * @since 2025/01/13
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class EbSystemDictData implements Serializable {
    @Serial
    private static final long serialVersionUID = -3248196099438327581L;
    /**
     * 主键
     */
    private Integer id;
    /**
     * 字典类型ID
     */
    private Integer typeId;
    /**
     * 字典标签
     */
    private String label;
    /**
     * 字典值
     */
    private String value;
    /**
     * 字典标示
     */
    private String code;
    /**
     * 排序
     */
    private Integer sort;
    /**
     * 状态 (1正常 2停用)
     */
    private Integer status;
    /**
     * 备注
     */
    private String remark;
    /**
     * 创建者
     */
    private Integer createdBy;
    /**
     * 更新者
     */
    private Integer updatedBy;
    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;
    /**
     * 修改时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;
    /**
     * 删除时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime deleteTime;
}